package cn.edu.ujs.coor.request.auth;

import cn.edu.ujs.coor.request.BaseRequest;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录请求
 *
 * @author 柳曾雄
 * @date 2018-07-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginRequest extends BaseRequest {

    /**
     * 用户id/联系方式/邮箱
     */
    @NotBlank(message = "账号非空")
    private String key;

    /**
     * 登录密码
     */
    @NotBlank(message = "密码非空")
    private String password;
}
